import request from '@/utils/request'

// 查询租户余额列表
export function listWxInfo(query) {
  return request({
    url: '/wx/wxInfo/list',
    method: 'get',
    params: query
  })
}

// 查询租户余额详细
export function getWxInfo(id) {
  return request({
    url: '/wx/wxInfo/' + id,
    method: 'get'
  })
}

// 新增租户余额
export function addWxInfo(data) {
  return request({
    url: '/wx/wxInfo',
    method: 'post',
    data: data
  })
}

// 修改租户余额
export function updateWxInfo(data) {
  return request({
    url: '/wx/wxInfo',
    method: 'put',
    data: data
  })
}

// 删除租户余额
export function delWxInfo(id) {
  return request({
    url: '/wx/wxInfo/' + id,
    method: 'delete'
  })
}

// 导出租户余额
export function exportWxInfo(query) {
  return request({
    url: '/wx/wxInfo/export',
    method: 'get',
    params: query
  })
}